package com.yjd.comm.fs.model;

import com.yjd.comm.base.model.Model;

import java.util.HashMap;
import java.util.Map;

/**
 * 
 * <b>description</b>：文件上传信息 <br>
 * <b>time</b>：2014-8-22 下午7:14:54 <br>
 * <b>author</b>： pengfei percy-chen@hotmail.com
 */
public class FileUploadedModel extends Model {
	/**
	* @Fields serialVersionUID
	*/
	private static final long serialVersionUID = 1L;
	private String attachdir;
	//上传后的文件名
	private String attachment;
	//上传后的URL
	private String attachurl;
	private Integer	error;
	//上传后的文件扩展名
	private String ext;
	//上传后的文件id
	private String id;
	private Integer isimage;
	//文件原名
	private String	name;
	private Long size;
	private String target;
	private String thumb;
	private String temp_name;
	private String type;
	public String getAttachdir() {
		return attachdir;
	}
	public void setAttachdir(String attachdir) {
		this.attachdir = attachdir;
	}
	public String getAttachment() {
		return attachment;
	}
	public void setAttachment(String attachment) {
		this.attachment = attachment;
	}
	public String getAttachurl() {
		return attachurl;
	}
	public void setAttachurl(String attachurl) {
		this.attachurl = attachurl;
	}
	public Integer getError() {
		return error;
	}
	public void setError(Integer error) {
		this.error = error;
	}
	public String getExt() {
		return ext;
	}
	public void setExt(String ext) {
		this.ext = ext;
	}
	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	public Integer getIsimage() {
		return isimage;
	}
	public void setIsimage(Integer isimage) {
		this.isimage = isimage;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public Long getSize() {
		return size;
	}
	public void setSize(Long size) {
		this.size = size;
	}
	public String getTarget() {
		return target;
	}
	public void setTarget(String target) {
		this.target = target;
	}
	public String getThumb() {
		return thumb;
	}
	public void setThumb(String thumb) {
		this.thumb = thumb;
	}
	public String getTemp_name() {
		return temp_name;
	}
	public void setTemp_name(String temp_name) {
		this.temp_name = temp_name;
	}
	public String getType() {
		return type;
	}
	public void setType(String type) {
		this.type = type;
	}
	 @SuppressWarnings({ "unchecked", "rawtypes" })
	public Map getMap()   {  
	        Map returnMap = new HashMap();  
	        returnMap.put("attachment", attachment);
	        returnMap.put("attachdir", attachdir);
	        returnMap.put("attachurl", attachurl);
	        returnMap.put("error", error);
	        returnMap.put("ext", ext);
	        returnMap.put("id", id);
	        returnMap.put("isimage", isimage);
	        returnMap.put("name", name);
	        returnMap.put("size", size);
	        returnMap.put("target", target);
	        returnMap.put("temp_name", temp_name);
	        returnMap.put("type", type);
	        return returnMap;  
	    }  
	
}
